

package com.maoshi.shop.distribution.comment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maoshi.shop.common.response.ServerResponse;
import com.maoshi.shop.distribution.comment.dto.BindUserInfoDto;
import com.maoshi.shop.distribution.comment.model.DistributionUser;

public interface DistributionBindUserService {

    /**
     * 根据分享人的卡号，判断该用户是否能与该分享人进行绑定
     * @param shareUser 分享人
     * @param userId
     * @param type 0 扫码 1 下单
     * @return
     */
    ServerResponse<DistributionUser> bindDistribution(DistributionUser shareUser, String userId, int type);


    IPage<BindUserInfoDto> bindUserList(Page page, Long shopId, String userId);

}
